package com.leinao.constant;

/**
 * @author  wangshoufa 
 * @date 2018年11月15日 下午1:15:36
 *
 */

public enum LoginEnum {
	
	LOGIN_TIMEOUT(-1,"登录超时，请重新登录"),
	
	LOGIN_FAILED(-2,"登录失败，请重新登录"),
	
	LOGOUT_SUCCESS(0,"退出成功"),
	
	LOGOUT_FAILED(-1,"退出失败"),
	
	LOGIN_SUCCESS(0,"登录成功"),

	EMAIL_ERROR(2,"邮箱格式错误"),
	
	PASSWORD_LENGTH_ERROR(3,"密码长度不对"),
	
	PASSWORD_ERROR(4,"密码错误"),
	
	USER_NOT_EXIST(5, "用户不存在，请先注册"),
	
    UNKNOWN_ERROR(30002, "unknown error"),   // 未知异常
	
	DATA_GET_ERROR(30001, "get data failed"),


	USER_NOT_DEVELOPER(6, "用户非开发者，请先申请成开发者");
	
	private Integer seq;

    private String desc;

    LoginEnum(Integer seq, String desc) {
        this.seq = seq;
        this.desc = desc;
    }

	public int getSeq() {
		return seq;
	}

	public String getDesc() {
		return desc;
	}

}
